<?php !defined('DYHB_PATH') && exit; /* DoYouHaoBaby Framework 模板缓存文件 生成时间：2011-06-29 23:52:49  */ ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title><?php print G::L( "DoYouHaoBaby示例：多语言", null, null ) ; ?></title>
<link rel='stylesheet' type='text/css' href='__PUBLIC__/css/common.css'>
<script type="text/javascript" src="<?php echo __LIBCOM__;?>/Js/Dyhb.package.js"></script>
<script type="text/javascript">
Dyhb.Lang.SetCurrentLang( '__LANG_NAME__' );
var jsLang = D.L( '我是Javascript语言包，我可以在外部Javascript 中使用，语言数据通过Ajax保存在PHP 中！' );
</script>
 </head>
 <body>
 <div class="main">
 <h2><?php print G::L( "DoYouHaoBaby示例之：多语言支持", null, null ) ; ?></h2>
<div class="title"><?php print G::L( "给项目定义了三个语言包：简体中文、繁体中文和英文。", null, null ) ; ?></div><br/>
 <div class="result">
<script type="text/javascript">
document.write( jsLang );
</script>
<br/>
<?php echo( $sLang ); ?>
</div>
<?php print G::L( "切换到", null, null ) ; ?>：<a href="?l=zh-cn"><?php print G::L( "简体中文", null, null ) ; ?></a> | <a href="?l=zh-tw"><?php print G::L( "繁体中文", null, null ) ; ?></a> | <a href="?l=en-us"><?php print G::L( "英文", null, null ) ; ?></a>
 <div class="line"></div>
 <div class="title"><?php print G::L( "示例源码", null, null ) ; ?></div><br/>
 <div class="li_title"><?php print G::L( "配置文件", null, null ) ; ?>Config.php</div><br/>
 <div class="code"><?php highlight_file( APP_CONFIG_PATH.'/Config.php') ?></div>
 <div class="li_title"><?php print G::L( "控制器IndexControl类", null, null ) ; ?></div><br/>
 <div class="code"><?php highlight_file( APP_LIB_PATH.'/Action/IndexController.class.php') ?></div>
</div>
 </body>
</html>